package com.biz.primus.ms.member.trans;

import com.biz.primus.ms.member.dao.po.MemberBankCard;
import com.biz.primus.ms.member.dao.ro.MemberBankCardRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * 银行卡po转ro
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberBankCardToMemberBankCardRo implements Function<MemberBankCard, MemberBankCardRo> {
    @Override
    public MemberBankCardRo apply(MemberBankCard po) {
        MemberBankCardRo ro = new MemberBankCardRo();
        if (po != null) {
            BeanUtils.copyProperties(po, ro);
        }
        return ro;
    }
}
